import math
res = 0
m = 998244353
for i in range(26):
    for j in range(i+1):
        res += math.factorial(j+1)

print (res % m)